package com.linzm.structuraltype.adapter01;

import com.linzm.structuraltype.adapter01.mediaplayer.AudioPlayer;

/**
 * @Author zimingl
 * @Date 2023/4/15 22:51
 * @Description: AdapterPatternDemo
 */
public class AdapterPatternDemo {
    public static void main(String[] args) throws Exception {
        AudioPlayer audioPlayer = new AudioPlayer();

        audioPlayer.play("MP4", "beyond the horizon.mp3");
        audioPlayer.play("MP4", "alone.mp4");
        audioPlayer.play("VLC", "far far away.vlc");
        audioPlayer.play("AVI", "mind me.avi");
        audioPlayer.play("MP3", "mind me.avi");
    }
}
